//
//  WJBarButtonItem+extention.swift
//  WJWEIBO
//
//  Created by 文杰 许                       on 2018/6/22.
//  Copyright © 2018年 文杰 许                      . All rights reserved.
//

import UIKit

extension UIBarButtonItem
{
    convenience init(title: String, foneSize: CGFloat = 16, target: AnyObject?, action: Selector)
    {
        let btn = UIButton.init(title: title, foneSize: 16, normalColor: UIColor.gray, highlightedColor: UIColor.orange)
        btn.addTarget(target, action: action, for: .touchUpInside)
        
        // self.init 实例化UIBarButtonItem
        self.init(customView: btn)
    }
}
